package com.yicao.yicaomall.product.feign;

import com.yicao.yicaomall.common.to.SkuReductionTO;
import com.yicao.yicaomall.common.to.SpuBoundTO;
import com.yicao.yicaomall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 远程调用优惠券服务
 */
@FeignClient("yicaomall-coupon")
public interface CouponFeignService {
    @PostMapping("coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTO spuBoundTO);

    @PostMapping("coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTO skuReductionTO);
}
